<extend  name="Template/index"/>
<block name="title"> 资料中心 </block>
<block name="resource">
    <link rel="stylesheet" href="__PUBLIC__/home/css/datum.css"/>

</block>
<block name="banner"></block>
<block name="main">

    <div class="container " style="margin-top: 10px">

                <!--搜索框-->
        <div class=" row ">
            <form action="" method="post" class="bs-example bs-example-form" role="form">
                <div class="input-group input-group-lg col-xs-8 col-lg-5 col-sm-5" style="margin: 0 auto;margin-top: 10px;">
                    <input class="form-control " type="search" name="search">
                    <span class="input-group-addon">搜索</span>
                </div>
            </form>
        </div>




        <div class="row">
            <div class=" col-lg-9 col-xs-12 col-sm-12" style="background: #ffffff;margin-top: 10px">
                <div class="" style="margin-top: 10px ">
                    <ol class="breadcrumb">
                        <span class="glyphicon glyphicon-home"></span>
                        <li>您当前所在位置 ：</li>
                        <li><a href="{:U('Index/index')}">首页</a></li>
                        <li >资料库</li>
                    </ol>
                </div>



                <div class="form-group visible-xs">
                    <div class="col-lg-4 col-xs-4">
                      <input value="按照下载量" type="button">
                      <input value="上传时间" type="button">
                    </div>
                </div>

            <volist name="allFile" id="val">
                <div class="main archive-list " >
                    <ul class="article-list clearfix" >
                        <li class="article-item"  >
                            <div class="article-item-wrap">
                                <a class="thumb">
                                    <img class="" src="__PUBLIC__/{$val.file_img_url}" />
                                </a>
                            </div>
                            <div class="article-info">
                                <h2 class="title">
                                    <span class="category">
                                    <a class="{:U('Datum/index')}" href="" title="分类" >{$val.category_name}</a>
                                    </span>
                                    <a title="标题" href="{:U('Datum/details',array('id'=>$val['file_id'],'key'=>$val['category_type']))}" >{$val.name}</a>
                                </h2>

                                <div class="excerpt">
                                    <p>{$val.content}</p>

                                </div>

                                <div class="theme-info ">
                                    <span class="category tags">
                                        <span class="glyphicon glyphicon-tags"> </span>&nbsp;
                                       <volist name="val.tag" id="tag">
                                        <a rel="tag" href="{:U('Datum/search',array('id'=>$tag['id']))}" style="margin-left: 3px">{$tag.tag_name}</a>

                                       </volist>
                                    </span>

                                    <span class="meta-comments info-item">
                                  <span class="	glyphicon glyphicon-download"></span>&nbsp;
                                    {$val.f_number}
                                    </span>

                                </div>
                                <div class="article-time">
                                    <span class="glyphicon glyphicon-time">{$val.create_time|date='Y-m-d',###}</span>

                                </div>
                            </div>
                        </li>

                    </ul>
                </div>
            </volist>


                    {$show}

                <!--<div class="text-center ">-->
                        <!--<ul class="pagination " >-->
                            <!--<li><a href="{:U('Datum/index',array('page'=>2))}">上一页</a></li>-->
                            <!--<li class="active"><a>1</a></li>-->
                            <!--<li><a>2</a></li>-->
                            <!--<li><a>3</a></li>-->
                            <!--<li><a href="{:U('Datum/index',array('page'=>3))}">下一页</a></li>-->
                        <!--</ul>-->
                 <!--</div>-->

            </div>

            <div class="col-lg-3 col-sm-12 tag col-xs-12" style="margin-top: 10px;">
                <div class="upload">
                    <a href="{:U('Datum/upload')}">上传资料</a>
                </div>
                <div class="selected visible-lg">
                    <h3>资料分类</h3>
                    <a class="tag-info" href="">css</a>
                    <a class="tag-info" href="">html</a>
                    <a class="tag-info" href="">javascript</a>
                    <a class="tag-info" href="">jquery</a>
                </div>


                <div class="selected ">
                    <h3>标签推荐</h3>
                    <a class="tag-info" href="">css</a>
                    <a class="tag-info" href="">html</a>
                    <a class="tag-info" href="">javascript</a>
                    <a class="tag-info" href="">jquery</a>
                </div>




            </div>


        </div>


    </div>


</block>